package csel.controller.decoders;

import java.awt.event.ActionEvent;

import csel.controller.listeners.AbstractActionListener;

/**
 * Reasons for Existence: Decodes action events, selects a dispatcher and command factory</br>
 * Team Members Responsible</br>
 * Implementation: Nik, Tait</br>
 * Testing: Nik, Tait</br>
 * 
 * @author Nikolas Wolfe
 */
public abstract class AbstractActionEventDecoder extends EventDecoder
{
	protected AbstractActionListener listener;
	protected ActionEvent actionEvent;
	
	//gets the actionEvent from the listener and overrides the superclass
	@Override
	protected void retrieveCommand()
	{
		actionEvent = listener.getActionEvent();
	}
	
	// defer to subclass
	public abstract void parseCommand() throws InterruptedException;
}
